package com.adee.java;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@SpringBootApplication
@Controller
public class PersonService {
    public static void main(String[] args) {
        SpringApplication.run(PersonService.class, args);
    }

    @ResponseBody
    @GetMapping("/")
    public String hello() {
        Person p = new Person("Id0010", "Jack");
        return p.toString();
    }
}
